package com.cheng.chat;

public class TalkTeacher {
    public static void main(String[] args) {
        new Thread(new TalkSend(5555,8888,"localhost")).start();//老师的消息从5555端口发出去，发送到8888端口

        new Thread(new TalkReceive(9999,"学生")).start();//老师通过8888端口接收学生发送过来的消息

    }
}
